    <div class="main-content">
    	<div class="breadcrumbs" id="breadcrumbs">
			<script type="text/javascript">
				try{ace.settings.check('breadcrumbs' , 'fixed')}catch(e){}
				$(document).ready(function () {

				 });
			</script>
	
			
		</div>
		
        <!-- Main content -->
    <div class="page-content">
        <div class="page-header">
			<h1>油号创建</h1>
		</div>
        <div class="row">
			<div class="col-xs-12">
			<?php if (validation_errors()!=''){?>
	           <div id="info_msg" class="alert alert-danger"><?php echo validation_errors();?></div>
	        <?php }?>
	            <!-- general form elements disabled -->
	                <form id="usrform" role="form" action="<?php echo base_url().'admin/gasolinemodel/add_gasolinemodel/'.$gasstation_id;?>" method="post">
	                	<input type="hidden" name="user_id" value="0">
	                	<input type="hidden" name="gasstation_id" value="<?php echo $gasstation_id;?>">  
	                	<div class="box-body" style="display: inline-block;width: 100%">
	                        <div class="form-group col-xs-6">
	                            <label>油号名称</label>
	                            <select name="gm_id" check-type="required" class="form-control">
	                               <option value="">请选择油号</option>
	                               <?php foreach ($gm as $val){?>
	                                   <option value="<?php echo $val->id;?>"><?php echo $val->glmodel_name;?></option>
	                               <?php }?>
	                            </select>
	                        </div>
	                    <div class="form-group col-xs-6">
				            <label>油站价格：</label>
				            <input name="yz_price" type="text" class="form-control" placeholder="输入 ..." value="<?php if (isset($gasolinemodel->yz_price))echo $gasolinemodel->yz_price;?>" check-type="required">
			            </div>
			            <div class="form-group col-xs-6">
				            <label>钉铛优惠金额：</label>
				            <input name="dd_price" type="text" class="form-control" placeholder="输入 ..." value="<?php if (isset($gasolinemodel->dd_price))echo $gasolinemodel->dd_price;?>" check-type="required">
			            </div>
	                	</div><!-- /.box-body -->
	                	<div class="clearfix form-actions">
						<div class="col-md-offset-3 col-md-9">
							<button id="btnSubmit" class="btn btn-info" type="submit">
								<i class="icon-ok bigger-110"></i>
								保存
							</button>

							&nbsp; &nbsp; &nbsp;
							<a class="btn" href="<?php echo base_url()."admin/gasolinemodel/index/".$gasstation_id?>">
								<i class="icon-undo bigger-110"></i>
								返回
							</a>
						</div>
					</div>
	                </form>
	        </div>
		</div>
    </div>
</div>
<script type="text/javascript">
$("#usrform").validation();
//保存
$("#btnSubmit").on('click',function(event){
  // 2.最后要调用 valid()方法。
  if ($("#usrform").valid()==false){
    return false;
  }
});
</script>